﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace BigPang.Common.Service
{
    [ServiceContract(SessionMode=SessionMode.Required, CallbackContract=typeof(IGameCallback))]
    public interface IGameService
    {
        [OperationContract]
        void Join(string name, out string playerId);

        [OperationContract]
        void Quit();

        [OperationContract]
        void StartMove( int x, int y, int direction, float speed );

        [OperationContract]
        void StopMove( int x, int y );

        [OperationContract]
        void Action(int actionId);

        [OperationContract]
        void Hit(int id, int sourceId);

   }
}
